package com.liuda.settings.service.impl;

import com.liuda.settings.domain.User;
import com.liuda.settings.mapper.UserMapper;
import com.liuda.settings.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public User loginVerify(String loginAct,String loginPwd){
        return userMapper.selectByActAndPwd(loginAct,loginPwd);
    }

    @Override
    public List<User> getAllUnlockedUsers() {
        return userMapper.selectAllUnlocked();
    }
}
